home *** CD-ROM | disk | FTP | other *** search
- DbFilter is a none visual component which lets you filter a dataset.
- This is done with BDE filters.
-
- For registration info look in the file xTool.Txt.
-
- TDbFilter
- =========
-
- propertys
- ---------
- Handle : hDBIFilter
-
- This read-only property returns the handle of the
- BDE filter.
-
- DataSource : TDataSource
-
- Here you set the datasource which you want to connect to.
- Every time you change the activation of the datasource
- the filter is reassign.
-
- Priority : Word
-
- This is the priority that the filter has. The value depends
- from 1..n where 1 is the highest priority. The value is
- given directly to BDE at the time the filter is created.
-
- Events
- ------
- OnFilter : TFilterEvent
-
- To this event is called each time the filter needs
- to know if the current records fits or not. You can
- must return TRUE or FALSE as functions result to indicate
- should happen.
-
- A sample event-handler looks like :
-
- function TForm1.DbFilter1Filter(Sender: TObject;
- Dataset: TDataset): Boolean;
- begin
- Result:=(fldCustType.Value = 'A') and
- (fldCustCredit.Value >= 10000.0);
- end;
-
- Don't do a lot of functions in the call because it
- can be decrease your browsing performance. If you
- filter an area in a table you better use a SetRange
- call. At this time related tables and calculated
- fields not supported, sorry.
-
- If you change the filter-function, ever do a TTable.Refresh
- do ensures all data is re-filtered !
-
-
-